package cn.gqr.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document("t_type")
public class Type {

    @Id
    private String id;
    private String  type;
    private int num = 0;

    public Type() {
    }

    public Type(String type, int num) {
        this.type = type;
        this.num = num;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Type{" +
                "id='" + id + '\'' +
                ", type='" + type + '\'' +
                ", num=" + num +
                '}';
    }
}
